const path = require('path');

module.exports = {
  // 关闭 ESLint 实时校验
  lintOnSave: false, // 新增这一行

  devServer: {  
    port: 3000,
    proxy: {
      '/api': {
        target: 'http://localhost:8000',
        changeOrigin: true,
        pathRewrite: {  
          '^/api': ''
        },
        ws: true
      }
    }
  },

  configureWebpack: {
    resolve: {
      alias: {
        '@': path.resolve(__dirname, 'src')
      }
    }
  }
};